package com.lightboat.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lightboat.system.domain.CrmComment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 评论Mapper接口
 * 
 * @author lightboat
 * @date 2025-08-21
 */
@Mapper
@Repository
public interface CrmCommentMapper extends BaseMapper<CrmComment> {

    /**
     * 查询评论列表
     * 
     * @param crmComment 评论
     * @return 评论集合
     */
    public List<CrmComment> selectCrmCommentList(CrmComment crmComment);

    /**
     * 删除评论
     * 
     * @param commentId 评论主键
     * @return 结果
     */
    public int deleteCrmCommentByCommentId(Long commentId);

    /**
     * 批量删除评论
     * 
     * @param commentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCrmCommentByCommentIds(Long[] commentIds);
}
